use "$base_out/DWMS_Regresiones.dta", clear

*instead of management1 it could be index1
keep school_id  management1 treatgroup2
gen country="Mexico"
gen cty="mx"
rename management1 management
rename school_id id

preserve
use "$basein/ManagementSchools_EJ2015_ReplicationFiles/paper_schools.dta", clear
keep id country cty management
tostring id, replace
tempfile temp1 
save `temp1'
restore

append using  `temp1'



graph twoway ///
	kdensity management if cty=="br",  lwidth(thick) || ///
	kdensity management if cty=="in",  lwidth(thick) lpattern(dash) || ///
	kdensity management if cty=="us",  lwidth(thick) lpattern(shortdash) || ///
	kdensity management if cty=="mx",  lwidth(thick) lpattern(dash_dot) ///
	legend(label(1 "Brazil") label(2 "India") label(3 "US") label(4 "Mexico") col(2) pos(2) ring(0) symxsize(5)  size(large) on region(lstyle(none))) ///
	ylabel(0(.2)1.6) ///
	title("") ytitle("Density") xtitle("Management score")
	
	
	
graph export "$graphs/Management_Comparison.pdf", replace 